import http from '@/utils/request'

import IBaseObj from '#/index'

// export const uploadFile = (data: any) =>
//   http({
//     url: `/user/upload/images`,
//     method: 'post',
//     data
//   })

export const uploadDicomZip = (data: IBaseObj, onUploadProgress: Function = () => {}) =>
  http(
    {
      url: `/fgs/dcmup`,
      method: 'post',
      timeout: 1000000,
      data,
      onUploadProgress,
    },
    true
  )
